package com.swsc.solarverse.common;

/**
 * @Author anonymous
 * @Date 2021/4/28 22:43
 * @Version 1.0
 * @Description
 */
public class Constant {
    public static final String CONTEXT_PATH = "/api";
    public static final String API_VERSION_V1 = CONTEXT_PATH + "/v1";
    public static final String OPEN_API_V1 = "/open/api/v1";
    public static final String BASE_NOAUTH_PATH = API_VERSION_V1 + "/base";
    public static final String API_WEB = API_VERSION_V1 + "/v1";

    public static final String CUSTOM_OAUTH_URL = "/oauth/login";

    public static final String API_VERSION_V2 = CONTEXT_PATH + "/v2";
    public static final String REQ_TOKEN = "reqToken";
    public static final String SPILTOR_COMMA = ",";
    public static final String SPILTOR_DOUBLE_UNDERLINE = "__";
    public static final String SPILTOR_COMMA_G = ",/";
    public static final String USER_STATIONS = "[-1]";
    public static final String USER_STATIONS_NULL = "[]";
    public static final Integer DEFAULT_GROUP_ID = -1;
    public static final String DEFAULT_GROUP_CODE = "-1";
    public static final String CFG_TYPE = "web";
    public static final String CFG_KEY_V_MAP = "CFG_V_MAP";
    public static final String CFG_KEY_V_STATIONS = "CFG_V_STATIONS";

    public static final String CFG_VAL_ALL = "ALL";

    public static final String DIR_GEOJSON = "/geojson/";
    public static final String DIR_REPORT = "/reports/";
    public static final String DIR_FLG = "/flg/";
    public static final String DIR_PROJECTFLG = "/projectflg/";
    public static final String FILE_SUFFIX_FLG = ".flg";
    public static final String FILE_SUFFIX_DAT = ".dat";
    public static final String DIR_UAVWAYLINE = "/uavwayline/";
    public static final String DIR_MULTIMEDIAE = "/multimedia/";

    public static final String FILE_TYPE_REPORT = "01";
    public static final String FILE_TYPE_FLG = "02";

    public static final String APP_PLATFORM_WEB = "WEB";
    public static final String APP_PLATFORM_ANDROID = "ANDROID";
    public static final String APP_PLATFORM_CLIENT = "CLIENT";

    public static final String STR_IMAGEDATASET = "ImageDataset";
    public static final String DIR_IMAGEDATASET = "/" + STR_IMAGEDATASET;

    public static final String SPILTOR_COMMA_IMAGEDATASET = SPILTOR_COMMA + STR_IMAGEDATASET;
    public static final String DIR_INFRARED = "/INFRARED";
    public static final String DIR_UASWAYLINE = "/uaswayline";
    public static final String DIR_APPFILE = "/APPFILE";
    public static final String DIR_TURBUNE = "/turbine/";
    public static final String DIR_ECPYLON = "/ecpylon/";


    /**
     * 默认初始化系统组织机构上级编号
     */
    public static final Integer DEFAULT_SYS_ORGAN_PNO = 0;
    /**
     * 默认初始化系统租户编号
     */
    public static final Integer DEFAULT_SYS_TENANT_NO = 0;
    /**
     * 默认初始化系统机构编号
     */
    public static final Integer DEFAULT_SYS_ORGAN_NO = 0;
    /**
     * 默认租户(起始)编号
     */
    public static final Integer DEFAULT_TENANT_NO = 1000;
    /**
     * 默认租户编号增长步长
     */
    public static final Integer DEFAULT_TENANT_STEP = 1;

    /**
     * 类型
     */
    public static final String CAPTCHA_TYPE_IMAGE = "math";
    /**
     * 图片
     */
    public static final String CACHE_KEY_CAPTCHA_PREFIX_IMG = "captcha_img_";
    /**
     * 文字
     */
    public static final String CACHE_KEY_CAPTCHA_PREFIX_TXT = "captcha_txt_";

    /**
     * 默认密码
     */
    public static final String DEFAULT_PASSWORD = "Svp@123456";

    public static final String DEVICE_STATUS = "DEVICE:STATUS:";

    public static final String TOPIC_DEVICE_STATUS = "/device/status/+";
    public static final String DEVICE_STATUS_UAS_ONLINE = "uas_online";
    public static final String DEVICE_STATUS_UAS_OFFLINE = "uas_offline";
    public static final String DEVICE_STATUS_UAV_ONLINE = "uav_online";
    public static final String DEVICE_STATUS_UAV_OFFLINE = "uav_offline";

    public static final String UASONLINE = DEVICE_STATUS.concat(Constant.DEVICE_STATUS_UAS_ONLINE);
    public static final String UAVONLINE = DEVICE_STATUS.concat(Constant.DEVICE_STATUS_UAV_ONLINE);
    public static final String UASOFFLINE = DEVICE_STATUS.concat(Constant.DEVICE_STATUS_UAS_OFFLINE);
    public static final String UAVOFFLINE = DEVICE_STATUS.concat(Constant.DEVICE_STATUS_UAV_OFFLINE);

    public static final String DEVICE_UAV_LOCATION = "DEVICE:UAV:LOCATION";

    public static final String STR_DEFAULT = "default";
    public static final String STR_UNKNOW = "UNKNOW";

    public static final int SQL_IN_MAX_VAL = 2000;

    public static final String DEFAULT_USER = "sys";
    // 默认光伏报告模板编号
    public static final String DEFAULT_REPORT_TEMPLATE_NO = "000000000000000000000001";
    public static final Byte BYTE_0 = Byte.parseByte("0");
    public static final Byte BYTE_1 = Byte.parseByte("1");
    public static final Byte BYTE_2 = Byte.parseByte("2");
    public static final Byte BYTE_3 = Byte.parseByte("3");
    public static final Byte BYTE_4 = Byte.parseByte("4");
    public static final Byte BYTE_5 = Byte.parseByte("5");
    public static final Byte BYTE_6 = Byte.parseByte("6");
    public static final String STR_1 = "1";
    public static final String HUAWEI_IVSCAN_TASK = "huawei:ivscan:task";
    public static final String HUAWEI_IVSCAN_TASK_DONE = "huawei:ivscan:task:done";

    public static final String HUAWEI_IVSCAN_TASK_DEAL_RESULT = "huawei:ivscan:task:deal:result";

    public static final String STR_PROGRESS = "PROGRESS";
    public static final String TASK_ORDER_SYNC_DEFECT_PROGRESS = "TASK_ORDER_SYNC_DEFECT_PROGRESS";
    public static final String AI_DETECT_PROGRESS = STR_PROGRESS + ":%s_%s_%s";
    public static final String AI_DETECT_PROGRESS_STATE = STR_PROGRESS + ":STATE:" + "%s_%s_%s";

    public static final String DIR_DOWNLOAD = "/download/";

    public static final String AUTO_TASK_KEY = "auto:task:%s:%s";
    public static final String WAYLINE_JOB_MEDIA_DOWNLOADING_KEY = "wayline:job:media:downloading:%s";
    public static final String PEDESTRIAN_DETECT_VIDEO_PREFIX = "pedestrian:detect:video_%s";
    public static final String PEDESTRIAN_DETECT_VIDEO_WARNING_PREFIX = "pedestrian:detect:warn_";
    public static final String PEDESTRIAN_DETECT_VIDEO_WARNING = PEDESTRIAN_DETECT_VIDEO_WARNING_PREFIX + "%s_%s";
    public static final String FLIGHT_TASK_PROGRESS_POS_PREFIX = "flight_task_progress_pos_";
    public static final String FLIGHT_TASK_PROGRESS_POS = FLIGHT_TASK_PROGRESS_POS_PREFIX + "%s_%06d";
    public static final String PEDESTRIAN_DETECT_VIDEO_WARNING_FLIGHT_TASK_PAUSE_PREFIX = "pedestrian:detect:warn:flight_task_pause_";
    /**
     * workspaceId, dockSn, jobId, psdkIndex
     */
    public static final String PEDESTRIAN_DETECT_VIDEO_WARNING_FLIGHT_TASK_PAUSE = PEDESTRIAN_DETECT_VIDEO_WARNING_FLIGHT_TASK_PAUSE_PREFIX + "%s_%s_%s_%d";

    public static final String UUID_DEFAULT = "00000000-0000-0000-0000-000000000000";
}
